# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-hijri-converter
pkgver=2.1.0
pkgrel=1
pkgdesc="Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"
url="https://github.com/dralshehri/hijri-converter"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/dralshehri/hijri-converter/archive/v$pkgver/hijri-converter-v$pkgver.tar.gz"
builddir="$srcdir/hijri-converter-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="ced1ad7ac6e552ef59bad3bea5a5f83b81d2b18138f9f5ebb1b5b2a54ab3a3eaf6827c32c7ffe97eed455b927315b093c8c78b6a8ec08bbfda4a6f5fee7b530b  hijri-converter-v2.1.0.tar.gz"
